package com.just.recruitback.controller;


import com.just.recruitback.entity.Information;
import com.just.recruitback.entity.Resume;
import com.just.recruitback.service.ResumeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author baibaiwuchang
 * @since 2020-07-05
 */
@RestController
@RequestMapping("/resume")
public class ResumeController {
    @Resource
    private ResumeService resumeService;

    @GetMapping("/one")
    public Resume getOneById(int userId) {
        return resumeService.getOne(userId);
    }

    @PostMapping("/save")
    public void saveInformation(@RequestBody Resume resume) {
        resumeService.save(resume);
    }
}
